/**
 * 
 */
package org.cuatrovientos.tema14colecciones;

import java.util.Vector;

/**
 * represents a team
 * extends a Vector to store string
 * @author daniel_ancin
 *
 */
public class Team extends Vector<Player> {
	
	private String name;
	private int foundationYear;
	private double budget;
	
	/**
	 * @param name
	 * @param foundationYear
	 * @param budget
	 */
	public Team(String name, int foundationYear, double budget) {
		super();
		this.name = name;
		this.foundationYear = foundationYear;
		this.budget = budget;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the foundationYear
	 */
	public int getFoundationYear() {
		return foundationYear;
	}
	/**
	 * @param foundationYear the foundationYear to set
	 */
	public void setFoundationYear(int foundationYear) {
		this.foundationYear = foundationYear;
	}
	/**
	 * @return the budget
	 */
	public double getBudget() {
		return budget;
	}
	/**
	 * @param budget the budget to set
	 */
	public void setBudget(double budget) {
		this.budget = budget;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Team [name=" + name + ", foundationYear=" + foundationYear
				+ ", budget=" + budget + "]";
	}
	
	
	

}
